<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>大放券</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="msapplication-tap-highlight" content="no"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script>
var WWW_URL = 'http://www.cjwsc.com';//每次切换环境必须修改改地址
</script>
<link rel="stylesheet" href="../../css/model.css">
<!-- <link rel="stylesheet" href="../style/css/qcwd_fhc.css"> -->
<!-- <link rel="stylesheet" href="../../css/swiper.min.css"> -->
<script src="../../js/jquery-1.8.3.min.js"></script>
<script src="../../js/login.js"></script>
<script src="../../js/model.js"></script>
<script type="text/javascript" src="../script/scroll.js"></script>
<!-- <script src="../../js/jquery.lazyload.min.js"></script> -->
<!-- <script src="../../js/Swiper-3.3.1/swiper.min.js"></script> -->
<script src="../script/ghj_fch.js"></script>
<script src="../script/ghj_0725.js"></script>
<script>

</script>
<style>
body{font-family:'微软雅黑';}
.qcwd_main{/*border*/background-color:#FF5203;padding-bottom:78px;overflow-x:hidden }
.brand-box .brand-item {}
.nav-select{background-color:#a20615}
.swiper-container {/*background: #FC2C80*/;position: relative;}
/*点 线条修饰*/
.nav-select .nav-item:nth-of-type(1):before{content:'';width: 4px ;height: 40px;position: absolute;right: 0;top: 4px;border-right: 2px dashed #FF2198;}
.nav-select .nav-item:nth-of-type(2):before{content:'';width: 4px ; height: 40px; position: absolute; right: 0; top: 4px; border-right: 1px dashed #F75262;}
.nav-select .nav-item:nth-of-type(3):before{content:'';width: 4px ; height: 40px; position: absolute; right: 0; top: 4px; border-right: 1px dashed #F75262;}
.nav-select .nav-item:nth-of-type(4):before{content:'';width: 4px ; height: 40px; position: absolute; right: 0; top: 4px; border-right: 1px dashed #F75262;}
.nav-select .nav-item:nth-of-type(5):before{content:'';width: 4px ; height: 40px; position: absolute; right: 0; top: 4px; border-right: 1px dashed #F75262;}
.nav-select .nav-item.cur:before{display: none;}
/*点 线条修饰*/


img{width: 100%;}
img{vertical-align:top;}
.banner,.banner img{width:100%;}
.pos-r{position: relative;}
.alink{position: absolute;/*background: rgba(0,0,0,.4);*//*border-bottom: 1px dashed red;*/}
/*50% 占2份的时候*/
.alink.col-50{width: 50%;height: 100%;position: absolute;z-index: 10; left: 0; top: 0;}
.parent .alink.col-50:nth-of-type(2){ left: 50%;}
/*33% 占3份的时候*/
.alink.col-33{ width:33%; height: 100%; position: absolute; z-index: 10; left: 0; top: 0;}
.parent .alink.col-33:nth-of-type(2){ left:33.33%;}
.parent .alink.col-33:nth-of-type(3){ left:66.66%;}
/*返回顶部*/
.btm:after {position: absolute;width: 50%;height: 48%;/* border: 1px solid red;*/left: 50%;margin-left: -25%;content: ''; z-index: 20;
    top: 58%;margin-top: -10%;cursor: pointer;}
/*具体而微的定位规则*/
.col-50 .price {text-align: left;bottom: 7%;left: 12%;}
.alink.col-33 .price {font-size: 22px;left: 9%;bottom: 4.5%;text-align: left;}
.alink.col-33 .yuan{font-size: 16px !important;}
.alink.col-50 .price {font-size: 31px;}

/*导航条儿*/
.nav-select{width:100%;height:54px;padding:4px 5px 0 5px;box-sizing: border-box;}

.nav-select .nav-item{display: inline-block;float:left;box-sizing: border-box;/*border:1px solid white;*/text-align: center;font-size: 23px;font-weight: bold;color: white;line-height: 50px;position: relative;}
.nav-select .nav-item.col-33{width:33.33%;}
.nav-select .nav-item.cur{background:#fbe210; color:black;border-radius: 8px 8px 0 0}
/*swiper样式*/

/*poster-box*/
.content-box-1 .poster-box{background:#EA186C;}
.lazy{}
/**/
.left-box.coupon{
 /* border:1px dashed white;*/
}
.banner-box {position: }
.choujiang-box {margin-top: 11px;position: relative;z-index: 500;}
.when-no{display: none;}
.cj-wrap{display: block;}

.swiper-more-arrow {position: absolute;width: 38px;height: 100%;background:#650739;/* border: 2px solid white; */vertical-align: middle;/*padding-top: 10px;*/right: 0;box-sizing: border-box;top: 0;text-align: center;padding-top:15px;opacity:0.7;z-index: 500;}
.swiper-more-arrow img{width:60%;}

body{font-family:'微软雅黑';}
.qcwd_main{/*border*/background:#ca0302;position: relative;overflow-x: hidden}
img{width: 100%;}
img{vertical-align:top;}
.banner,.banner img{width:100%;}
.cl:after{display: block; content:''; clear: both; }
.text-c{text-align: center;}
.text-ellipsis-1{overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp:2; padding:0 0px; }
.pos-r{position: relative;}
.pagination {position: absolute; z-index: 20; bottom: 10px; width: 66px; text-align: center; right:0; }
.swiper-pagination-bullet {display: inline-block; width: 5px; height: 5px; border-radius:5px; background: #fff; margin: 0 2px; opacity: 0.8; cursor: pointer; }
.swiper-pagination-bullet-active {background: #ff6600; }
#tabs-container{height:auto;}
.tabs{margin-top:20px; border-top: 2px solid #9ac7ed; background:url(images/headbg.png) no-repeat left top #CA0302; background-size:auto 100%; width:100%;  overflow:hidden; }
.tabs{background-color:#ca0302;border:0px solid blue;box-sizing: border-box;position: relative;left: 20px;}

.tabs.fixed .tab-list{
  top: 8px;
}
.tabs .tab-list {
    border: 0px solid white;
    float: left;
    width: 25%;
    box-sizing: border-box;
    text-align: center;
    font-size: 25px;
    color: #f9f064;
    position: relative;
}
.tabs.fixed {
  position: fixed;
  top:-20px;
  width: 99%;
  max-width: 805px;
  border: 0px solid white;
  left: 50%;
  transform: translate(-49%,0);
  z-index: 9999;
  height: 66px;
}
.nav-text{position: absolute; top:5px; left: 0; width: 100%; text-align: center; height: 100%; }
.news-list{padding:0 10px; }
.news-list li{overflow: hidden; border-bottom:0px solid #eceef0; box-shadow: 0 1px 1px #fff; font-weight: normal; height: 35px; line-height: 35px; font-size: 1.125em; }
.title{width: 375px;margin:20px auto 15px auto;}
.coupon-wrap{padding:0 2%;}
.main{box-sizing: border-box;padding:0 2%;position: relative;z-index:5000;}
.col-50{width:50%;border:0px solid white;box-sizing:border-box;float: left;padding:0.55%;}
.col-20{width:20%;border:0px solid white;box-sizing:border-box;float: left;padding:0.55%;}
.brand-item{width:20%;border:0px solid white;box-sizing:border-box;float: left;padding:0.55%;}
.col-25{width:25%;border:0px solid white;box-sizing:border-box;float: left;padding:0.55%;}
.link{display:block;width: 100%;height: 100%;}
.tab-list.active{color: #d40203;}
.tab-list-1{position: relative; }
.tab-list-2{position: relative; left: -14px; }
.tab-list-3{position: relative; left: -28px; }
.tab-list-4{position: relative; left: -42px; }
.back-top {margin: 64px auto 40px  auto; cursor: pointer; }
.yhj-wrap{border:0px solid blue;box-sizing: border-box;padding:0 2%;height:97px;}
.coupon-list{float: left;width: 25%;box-sizing: border-box;padding:0 0.5%;position: relative;}
.unclick-mask{
  position: absolute;
  width: 100%;
  height: 140%;
  z-index:99999;
  background: red;
  top: 0;
  left: 0;
  opacity:0;
}
.yhj-wrap .left{visibility:hidden;}
.yhj-wrap .right{visibility:hidden;}
.coupon-img{position:absolute;top: 0;left: 0;width:96%;cursor: pointer; }
.coupon-tag {position: absolute; bottom: -14px; right: 0; color: #700000; left:-6px; text-align: center; }
.val-50 {bottom: -15px; line-height: 13px; }
em{color: #d10303; font-style: normal; }

.swiper-slide{display: none;}
body{
  position: relative;
}
.loading{position: absolute;top: 0;left: 0;color:black;opacity: 0.1;left: 0;font-size: 20px;z-index: 100;}
.opacity{
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0.09;
}
.remarks{text-align: center;color:#FEB85A;font-size: 16px;}
</style>
</head>
<body id='grmh'>
    
<div class="qcwd_main"><!-- 主题内容开始 -->
<span class="opacity">
  noswiper-z-index-have-coupon 
</span>
    <div class="banner-box">
      <div class="banner pos-r">
          <img src="../images/coupon170916/banner.jpg" alt=""> 
      </div>
    </div>
    <div class="tabs cl">
      <a href="###" class="tab-list tab-list-1 active">
        <span class="nav-text">每天领券</span> 
        <img class="nav-bg" src="../images/coupon170916/nav.png" alt="">
      </a>
      <a href="###" class="tab-list tab-list-2">
        <span class="nav-text">四五秒杀</span> 
        <img class="nav-bg" src="../images/coupon170916/nav.png" alt="">
      </a>
      <a href="###" class="tab-list tab-list-3">
        <span class="nav-text">周末特惠</span> 
        <img class="nav-bg" src="../images/coupon170916/nav.png" alt="">
      </a> 
      <a href="###" class="tab-list tab-list-4">
        <span class="nav-text">活动日历</span> 
        <img class="nav-bg" src="../images/coupon170916/nav.png" alt="">
      </a> 
    </div>
    <div id="tabs-container" class="swiper-container">
      <div class="swiper-wrapper">
        <div class="swiper-slide" style="display: block">
          <div class="content-slide page-1">
              <div class="title">
                <img src="../images/coupon170916/p1/title01-2.png" alt="">
              </div>
            <ul class="yhj-wrap coupon-content cl">
              <li class='clear coupon-list' data-couponid="">
                <a class="yhj-box cl" href="javascript:;">
                  <div class="left">
                      <p class='not'>特价商品除外</p>
                      <div class="value">
                          <p class='number'>???</p>
                      </div>
                  </div>
                  <div class="right">
                      <p class='yhj-text'>优惠卷</p>
                      <p class='yhj-condition'>满<span>?</span>使用</p>
                  </div>
                </a>
                <img class="coupon-img" src="../images/coupon170916/5-2.png" alt="">
                <span class="coupon-tag">
                  使用时间：9月26日-9月27日
                </span>
              </li>
              <li class='clear coupon-list' data-couponid="">
                <a class="yhj-box cl" href="javascript:;">
                  <div class="left">
                      <p class='not'>特价商品除外</p>
                      <div class="value">
                          <p class='number'>???</p>
                      </div>
                  </div>
                  <div class="right">
                      <p class='yhj-text'>优惠卷</p>
                      <p class='yhj-condition'>满<span>?</span>使用</p>
                  </div>
                </a>
               <img class="coupon-img" src="../images/coupon170916/10-2.png" alt="">
               <span class="coupon-tag">
                  使用时间：9月26日-9月27日
                </span>
              </li>
              <li class='clear coupon-list' data-couponid="">
                <a class="yhj-box cl" href="javascript:;">
                  <div class="left">
                      <p class='not'>特价商品除外</p>
                      <div class="value">
                          <p class='number'>???</p>
                      </div>
                  </div>
                  <div class="right">
                      <p class='yhj-text'>优惠卷</p>
                      <p class='yhj-condition'>满<span>?</span>使用</p>
                  </div>
                </a>
                <img class="coupon-img" src="../images/coupon170916/30-2.png" alt="">
                <span class="coupon-tag">
                  使用时间：9月26日-9月27日
                </span>
              </li>
              <li class='clear coupon-list' data-couponid="">
                <span class="unclick-mask"></span>
                <a class="yhj-box cl" href="javascript:;">
                  <div class="left">
                      <p class='not'>特价商品除外</p>
                      <div class="value">
                          <p class='number'>???</p>
                      </div>
                  </div>
                  <div class="right">
                      <p class='yhj-text'>优惠卷</p>
                      <p class='yhj-condition'>满<span>?</span>使用</p>
                  </div>
                </a>
                <img class="coupon-img" src="../images/coupon170916/50-2.png" alt="">
                <span class="coupon-tag val-50" style="display: none;">
                  使用时间：9月26日-9月27日
                  <br/>
                  <em>（每日10点限量抢券）</em>
                </span>
              </li>
            </ul>
            <p class="remarks" style="display: none;">注：活动期间，每种面额优惠券每个ID限领1张，全品类可用，逾期作废</p>
            <div class="title">
              <img src="../images/coupon170916/p1/title02.png" alt="">
            </div>
            <ul class="main cl">
              <li class="col-50">
                <a class="link htmllink" href="javascript:;">
                  <img src="../images/coupon170916/p1/1.png" alt="">
                </a>
              </li>
              <li class="col-50">
                <a class="link htmllink" href="javascript:;">
                  <img src="../images/coupon170916/p1/2.png" alt="">
                </a>
              </li>
              <li class="col-50">
                <a class="link htmllink" href="javascript:;">
                  <img src="../images/coupon170916/p1/3-2.png" alt="">
                </a>
              </li>
              <li class="col-50">
                <a class="link htmllink" href="javascript:;">
                  <img src="../images/coupon170916/p1/4.png" alt="">
                </a>
              </li>
              <li class="col-50">
                <a class="link htmllink" href="javascript:;">
                  <img src="../images/coupon170916/p1/5-2.png" alt="">
                </a>
              </li>
              <li class="col-50">
                <a class="link htmllink" href="javascript:;">
                  <img src="../images/coupon170916/p1/6.png" alt="">
                </a>
              </li>
            </ul>
            <div class="title">
              <img src="../images/coupon170916/p1/title03.png" alt="">
            </div>
            <ul class="main cl">
              <div class="brand-box clear">
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4132'><img src="../images/coupon170916/p1/brand01.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='2474'><img src="../images/coupon170916/p1/brand02.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='1929'><img src="../images/coupon170916/p1/brand03.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='2842'><img src="../images/coupon170916/p1/brand04.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='2884'><img src="../images/coupon170916/p1/brand05.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4172'><img src="../images/coupon170916/p1/brand06.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4163'><img src="../images/coupon170916/p1/brand07.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4180'><img src="../images/coupon170916/p1/brand08.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='2200'><img src="../images/coupon170916/p1/brand09.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4183'><img src="../images/coupon170916/p1/brand10.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4188'><img src="../images/coupon170916/p1/brand11.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='1335'><img src="../images/coupon170916/p1/brand12.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4186'><img src="../images/coupon170916/p1/brand13.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4194'><img src="../images/coupon170916/p1/brand14.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='2477'><img src="../images/coupon170916/p1/brand15.png" alt=""></a>
              </div>
            </ul>
            <div class="title">
              <img src="../images/coupon170916/p1/title04.png" alt="">
            </div>
            <div class="QCR">
              <img src="../images/coupon170916/p1/QCR-CODE.jpg" alt="">
            </div>
            <div class="back-top" style="width:100px;">
              <img src="../images/coupon170916/back-top.png" alt="">
            </div>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="content-slide page-2">
            <div class="title">
              <img src="../images/coupon170916/p2/title01.png" alt="">
            </div>
            <div class="main">
              <img src="../images/coupon170916/p2/s1.png" alt="">
            </div>
            <div class="title">
              <img src="../images/coupon170916/p2/title02.png" alt="">
            </div>
            <ul class="main cl">
             <div class="brand-box clear">
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4202'><img src="../images/coupon170916/p2/brand01.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='3041'><img src="../images/coupon170916/p2/brand02.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4198'><img src="../images/coupon170916/p2/brand03.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4212'><img src="../images/coupon170916/p2/brand04.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4206'><img src="../images/coupon170916/p2/brand05.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4104'><img src="../images/coupon170916/p2/brand06.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4110'><img src="../images/coupon170916/p2/brand07.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4101'><img src="../images/coupon170916/p2/brand08.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='829'><img src="../images/coupon170916/p2/brand09.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4126'><img src="../images/coupon170916/p2/brand10.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4154'><img src="../images/coupon170916/p2/brand11.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4137'><img src="../images/coupon170916/p2/brand12.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4120'><img src="../images/coupon170916/p2/brand13.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4121'><img src="../images/coupon170916/p2/brand14.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4134'><img src="../images/coupon170916/p2/brand15.png" alt=""></a>
              </div>
            </ul>
            <div class="back-top" style="width:100px;">
              <img src="../images/coupon170916/back-top.png" alt="">
            </div>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="content-slide page-3">
            <div class="title">
              <img src="../images/coupon170916/p3/title01.png" alt="">
            </div>
            <div class="main">
              <img src="../images/coupon170916/p3/s1.png" alt="">
            </div>
            <div class="title">
              <img src="../images/coupon170916/p3/title02.png" alt="">
            </div>
            <ul class="main cl">
                <div class="brand-box clear">
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4147'><img src="../images/coupon170916/p3/brand01.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4131'><img src="../images/coupon170916/p3/brand02.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4133'><img src="../images/coupon170916/p3/brand03.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4125'><img src="../images/coupon170916/p3/brand04.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4139'><img src="../images/coupon170916/p3/brand05.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='314'><img src="../images/coupon170916/p3/brand06.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4135'><img src="../images/coupon170916/p3/brand07.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4146'><img src="../images/coupon170916/p3/brand08.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4128'><img  src="../images/coupon170916/p3/brand09.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='2140'><img src="../images/coupon170916/p3/brand10.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4161'><img src="../images/coupon170916/p3/brand11.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4159'><img src="../images/coupon170916/p3/brand12.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4160'><img src="../images/coupon170916/p3/brand13.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4166'><img src="../images/coupon170916/p3/brand14.png" alt=""></a>
                 <a href="javascript:;" class="brand-item M_brand_a" data-id='4170'><img src="../images/coupon170916/p3/brand15.png" alt=""></a>
              </div>
            </ul>
            <div class="back-top" style="width:100px;">
              <img src="../images/coupon170916/back-top.png" alt="">
            </div>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="content-slide page-4">
            <div class="title">
              <img src="../images/coupon170916/p3/title02.png" alt="">
            </div>
            <div class="main">
              <img src="../images/coupon170916/p4/s1.png" alt="">
            </div>
            <div class="back-top" style="width:100px;">
              <img src="../images/coupon170916/back-top.png" alt="">
            </div>
          </div>
        </div>
      </div>
    </div>
</div>
<script>

$(function(){

// 取消冒泡
function stopPro(obj){
  $(obj).click(function(event){
    // alert(1)
    event.stopPropagation();
  })
}

stopPro(".unclick-mask");
// 取消冒泡





var htmlLink=[
'http://zt.cjwsc.com/zt/qcwd/september170829.html',
'http://zt.cjwsc.com/zt/qcwd/superbrand170904.html',
'http://zt.cjwsc.com/zt/qcwd/dianliang170921.html',
'http://zt.cjwsc.com/zt/qcwd/jiadian170906.html',
'http://zt.cjwsc.com/zt/qcwd/house-921.html ',
'http://zt.cjwsc.com/zt/qcwd/bulaze170915.html'
]
$(".htmllink").each(function(_ind){
  $(this).attr("href",htmlLink[_ind]).attr("target","_blank");
})

var img_add = "../images/yiqishuadapai/xiezi/";
var oldprice = [[],[]];
var newprice = [[],[]];
})

</script>
<script type="text/javascript">
$(function() {

function scrollTop(obj){
      $(document).on('click',obj,function(){
        $('html,body').animate({scrollTop:0+'px'},300);
      });
}
scrollTop(".back-top");
var poster01Id=[
1617,
2441,
3015,
763,
3133
]
$('.poster01').each(function(index){
    // $(this).attr('class','M_brand_a')
  $(this).attr('class','poster-box alink poster01 M_brand_a')
  $(this).attr('data-id',poster01Id[index]);
})

var oldprice = [[],[]];
var newsprice = [[],[]];
var href = new Array(
[117961],
[120517],
[84211],
[122509],
[125010],
[119068],
[40846],
[129187],
[127894],
[130194],
[126712],
[129171],
[67110],
[84358],
[67111],
[84343],
[139087],
[74824],
[74807],
[74831],
[74825],
[74832],
[101138],
[95441],
[127789],
[127799],
[128796],
[127194],
[122199],
[117957],
[114155],
[114152],
[79871],
[52649],
[127197],
[127336],
[114196]
);

var linkL=$('.guohuojie-content').find('.lj').length;
$('.guohuojie-content').find('.lj').each(function(index){
  $(this).attr('data-id',href[index])
})

  var url = WWW_URL + '/qcwdProduct/getProductByIds?ids=';
  var type = '&business_type=50&client_type=5';
  $.ajax({
      url: url + href.join(",") + type,
      dataType: "jsonp",
      jsonp: "jsonpcallback",
      success: function(data) {
          if (data.error == false) {
              var productData = data.msg;
              var dataLength = productData.length;
              for (var i = 0; i < dataLength; i++) {
                  var productName = productData[i]['name'];
                  var id = productData[i]['id']
                  var price = productData[i]['price'];
                  var discountPrice = productData[i]['discountPrice'];
                  var pic = productData[i]['pic'];
                  var pic_c = pic.replace('240_240','800_800');
                  var isfree = productData[i]['isfree'];
                  var isdouble = productData[i]['isdouble'];
                  var isavctive_full = productData[i]['isavctive_full'];
                  var discount = productData[i]['discount'];
                  var stock_num = productData[i]['stock_num'];
                  var status = productData[i]['status'];//1 上架 2 下架
                  // var stock_num = 0;
                  var freeFlag = productData[i]['freeFlag'];
                  var price_on_tag=productData[i]['price_on_tag'];
                  var discountStartTime=productData[i]['discountStartTime'];
                  var discountEndTime=productData[i]['discountEndTime'];
                        var d = new Date();
                        var n = Math.round(d.getTime()/1000);
                        if(discountStartTime!=0 && discountEndTime!=0){
                            if(discountStartTime<n && n<discountEndTime){
                               
                                price = discountPrice;
                            }
                            else{
                                price = price;
                            }
                        }
                        else{
                             price=price;
                        }
                  var showfreeClass = '';
                  if (isfree == '') {
                      showfreeClass = 'displayNone';
                  }



                  var errorimage = "public.cjwsc.com/images/product_loading.gif";

                  $('.C_J_good[data-id="' + id + '"]').find(".price>span.newsprice").html("<span style='font-size:22px' class='yuan'><span style='font-size:14px; color: #010101' class='qgj'>抢购价:</span>￥</span>"+price);

                  $('[data-id="' + id + '"]').find(".content-list-imgbox>img").attr({'src':pic_c})
                  $('.C_J_good[data-id="' + id + '"]').find(".price>span.oldprice").text('￥'+price_on_tag);
                  if (stock_num<=0||status==2) {
                      $('.C_J_good[data-id="' + id + '"]').addClass("col_sx").removeClass("C_J_good");
                  }
              }
          } else {
              console.log('error');
          }
      }
  });
});
</script>
<script src="../script/qc_valume.js"></script>
<script src="../../js/layer/layer.js"></script>
<script src="../../js/model-citizen.js"></script>
<script>
$(window).load(function(){
  var beGinTop=$(".tabs").offset().top;
  console.log(beGinTop);
  $(window).scroll(function(){
    var winTop=$(this).scrollTop()
    // console.log(winTop);
    if(winTop>beGinTop-50){
      $(".tabs").addClass("fixed");
      $(".content-slide").css("margin-top","60px");
    }else{
      $(".tabs").removeClass("fixed");
      $(".content-slide").css("margin-top","0px");
    }
  })
});

var timer=null;
function Click(){
  $(".tab-list").eq(0).find(".nav-bg").attr("src","../images/coupon170916/navcur.png")
  
  $(".tab-list").each(function(_a){
    $(this).click(function(){
      clearInterval(timer);
      $(this).addClass('active').siblings().removeClass('active');
      $(this).find(".nav-bg").attr("src","../images/coupon170916/navcur.png").parent().siblings().find(".nav-bg").attr("src","../images/coupon170916/nav.png")
      $(".swiper-slide").eq(_a).show().siblings().hide();
    })
  })
}
function mouseenter(){
  $(".tab-list").each(function(_a){
    $(this).mouseenter(function(){
      $(this).addClass('active').siblings().removeClass('active');
      $(this).find(".nav-bg").attr("src","../images/coupon170916/navcur.png").parent().siblings().find(".nav-bg").attr("src","../images/coupon170916/nav.png")
      $(".swiper-slide").eq(_a).show().siblings().hide();
    })
  })
}
mouseenter();
Click();
function AutoClick(){  
  var num=0;
  timer=setInterval(function(){
    num++;
    if(num==4){
      num=0;
    }
    console.log(num);
    $(".tab-list").eq(num).trigger("mouseenter");
  },3000)
}
AutoClick();
</script>
</body>
</html>


